home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 October / PCWorld_1999-10_cd1.bin / Software / Servis / X-setup / _SETUP.1 / XQ Win FX.xpl < prev    next >
Text File  |  1999-06-11  |  2KB  |  79 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Appearance\General\Effects"
  5. "NAME"="Windows FX Options"
  6. "VERSION"="2.12"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Window animation (taskbar zoom)"
  9. "TEXT 2"="Drag full windows"
  10. "TEXT 3"="Smooth scrolling"
  11. "TEXT 4"="Font smoothing"
  12. "DESCRIPTION 1"="All this options look nice but they might make your computer slower."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17.  
  18.  
  19. Sub Plugin_Initialize 
  20.  'String
  21.  i=RegReadValue("HKCU\Control Panel\desktop\WindowMetrics\MinAnimate")
  22.  if i=1 then SetUIElement 1,true
  23.  
  24.  'String
  25.  i=RegReadValue("HKCU\Control Panel\desktop\DragFullWindows")
  26.  if i=1 then SetUIElement 2,true
  27.  
  28.  'Binary!!
  29.  i=RegReadValue("HKCU\Control Panel\desktop\SmoothScroll")
  30.  if i=01000000 then SetUIElement 3,true
  31.  'DebugMsg "[" & i & "]"
  32.  
  33.  'String
  34.  i=RegReadValue("HKCU\Control Panel\desktop\FontSmoothing")
  35.  if i=1 then SetUIElement 4,true
  36. End Sub
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  b=GetUIElement(1)
  43.  if b=true then
  44.   Call RegWriteValue("HKCU\Control Panel\desktop\WindowMetrics\MinAnimate",1,1)
  45.  else
  46.   Call RegWriteValue("HKCU\Control Panel\desktop\WindowMetrics\MinAnimate",0,1)
  47.  end if
  48.  
  49.  b=GetUIElement(2)
  50.  if b=true then
  51.   Call RegWriteValue("HKCU\Control Panel\desktop\DragFullWindows",1,1)
  52.  else
  53.   Call RegWriteValue("HKCU\Control Panel\desktop\DragFullWindows",0,1)
  54.  end if
  55.  
  56.  b=GetUIElement(3)
  57.  if b=true then
  58.   Call RegWriteValue("HKCU\Control Panel\desktop\SmoothScroll","01000000",3)
  59.   'debugmsg "TRUE"
  60.  else
  61.   Call RegWriteValue("HKCU\Control Panel\desktop\SmoothScroll","00000000",3)
  62.   'debugmsg "FALSE"
  63.  end if
  64.  
  65.  b=GetUIElement(4)
  66.  if b=true then
  67.   Call RegWriteValue("HKCU\Control Panel\desktop\FontSmoothing",1,1)
  68.  else
  69.   Call RegWriteValue("HKCU\Control Panel\desktop\FontSmoothing",0,1)
  70.  end if
  71. End Sub
  72.  
  73.  
  74. Sub Plugin_Terminate 
  75. End Sub
  76.  
  77.  
  78.  
  79.